package com.nsqt.biz.service.impl;

import com.nsqt.biz.dao.InfocollDao;
import com.nsqt.biz.domain.InfocollDO;
import com.nsqt.biz.service.InfocollService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class InfocollServiceImpl implements InfocollService {
    @Autowired
    private InfocollDao infocollDao;

    @Override
    public InfocollDO get(Integer id) {
        return infocollDao.get(id);
    }

    @Override
    public List<InfocollDO> list(Map<String, Object> map) {
        return infocollDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return infocollDao.count(map);
    }

    @Override
    public List<InfocollDO> listComp(Map<String, Object> map) {
        return infocollDao.listComp(map);
    }

    @Override
    public int countComp(Map<String, Object> map) {
        return infocollDao.countComp(map);
    }

    @Override
    public List<InfocollDO> listReady(Map<String, Object> map) {
        return infocollDao.listReady(map);
    }

    @Override
    public int countReady(Map<String, Object> map) {
        return infocollDao.countReady(map);
    }

    @Override
    public int save(InfocollDO infocoll) {
        return infocollDao.save(infocoll);
    }

    @Override
    public int update(InfocollDO infocoll) {
        return infocollDao.update(infocoll);
    }

    @Override
    public int remove(Integer id) {
        return infocollDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return infocollDao.batchRemove(ids);
    }

    @Override
    public int batchCommit(Integer[] ids) {
        return infocollDao.batchCommit(ids);
    }

    @Override
    public int distribute(Integer[] ids, Integer material) {
        return infocollDao.distribute(material, ids);
    }

    ;

    public InfocollDO getByCopyrightOwner(String copyrightOwner) {
        return infocollDao.getByCopyrightOwner(copyrightOwner);
    }

    ;

}
